package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author shuai.zhang  on 2018/9/29
 * @description
 */
@ApiModel("更新用户的角色")
@Data
public class WtUserRoleRequest {

    @ApiModelProperty(value = "要操作的用户id", required = true,example = "0")
    @NotNull
    Long userId;

    @ApiModelProperty("角色Id")
    @NotNull
    @Size(min = 1)
    List<String> roleIds;

}
